<div id="menu">
    <h3><a href="#">日志</a></h3>
    <div>
        <ul>
            <li><a href="/backend/add/article" <?php if($this->menuSelected == 1): ?>class="menu-selected"<?php endif; ?>>添加/编辑</a></li>
            <li><a href="/backend/list/article" <?php if($this->menuSelected == 2): ?>class="menu-selected"<?php endif; ?>>列表</a></li>
            <li><a href="/backend/list/category" <?php if($this->menuSelected == 3): ?>class="menu-selected"<?php endif; ?>>日志分类</a></li>
            <li><a href="/backend/list/tag" <?php if($this->menuSelected == 4): ?>class="menu-selected"<?php endif; ?>>日志标签</a></li>
        </ul>
    </div>
    <h3><a href="#">评论</a></h3>
    <div>
        <ul>
            <li><a href="/backend/list/comment" <?php if($this->menuSelected == 101): ?>class="menu-selected"<?php endif; ?>>列表</a></li>
        </ul>
    </div>
    <h3><a href="#">链接</a></h3>
    <div><ul>
            <li><a href="/backend/list/link" <?php if($this->menuSelected == 201): ?>class="menu-selected"<?php endif; ?>>列表</a></li>
            <li><a href="/backend/list/linktype" <?php if($this->menuSelected == 202): ?>class="menu-selected"<?php endif; ?>>分类</a></li>
        </ul></div>
    <h3><a href="#">页面</a></h3>
    <div><ul>
            <li><a href="/backend/add/page" <?php if($this->menuSelected == 301): ?>class="menu-selected"<?php endif; ?>>添加页面</a></li>
            <li><a href="/backend/list/page" <?php if($this->menuSelected == 302): ?>class="menu-selected"<?php endif; ?>>列表</a></li>
        </ul></div>
    <!--
    <h3><a href="#">用户</a></h3>
    <div><ul>
            <li><a href="/backend/add/user" <?php if($this->menuSelected == 401): ?>class="menu-selected"<?php endif; ?>>添加新用户</a></li>
            <li><a href="/backend/list/user" <?php if($this->menuSelected == 402): ?>class="menu-selected"<?php endif; ?>>管理</a></li>
        </ul></div>
    <h3><a href="#">设置</a></h3>
    <div><ul>
            <li><a href="#" <?php if($this->menuSelected == 501): ?>class="menu-selected"<?php endif; ?>>站点统计</a></li>
        </ul></div>
    -->
</div>
<script type="text/javascript">
    $(function(){
        $("#menu").accordion({
            active: <?php echo $this->escape(floor($this->menuSelected/100)) ?>,
            autoHeight: false,
            collapsible: true,
            icons: {
                header: "ui-icon-circle-arrow-e",
                headerSelected: "ui-icon-circle-arrow-s"
            }
        });
    });
</script>